package com.nf.mvc.builder;

import lombok.Builder;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Builder
public class Product {
    private int id;
    private String name;
    private double price;

    public static void main(String[] args) {
        ProductBuilder p = new ProductBuilder().id(1).name("苹果").price(1.2);
        System.out.println(p);
    }

}
